
import 'package:light_compressor_ohos/compression_result.dart';

import 'light_compressor_ohos_method_channel.dart';
import 'light_compressor_ohos_platform_interface.dart';

class LightCompressorOhos {
  Future<String?> selectVideo() {
    return LightCompressorOhosPlatform.instance.selectVideo();
  }

  Future<Result> startCompression({
    required String path,
    required VideoQuality videoQuality,
  }) {
    return LightCompressorOhosPlatform.instance.startCompression(path: path,videoQuality: videoQuality);
  }

  Future<bool?> cancelCompression() {
    return LightCompressorOhosPlatform.instance.cancelCompression();
  }

  Stream<double> getUpdateStream() {
    return LightCompressorOhosPlatform.instance.getUpdateStream();
  }

  Future<double> getFileSize(String filePath) {
    return LightCompressorOhosPlatform.instance.getFileSize(filePath);
  }
}
